/*
 * VentanaAdministrador.java
 *
 * Created on 06-dic-2011, 15:08:34
 */

package interfazgrafica;

import interfazgrafica.administrarusuarios.AdministrarUsuarios;
import interfazgrafica.ayuda.VentanaAyuda;
import interfazgrafica.consultar.ConsultarDatos;
import interfazgrafica.modificar.ModificarDatos;
import java.awt.Color;

/**
 * Clase que se encarga de mostrar la ventana principal que corresponde al Administrador.
 * @author Lauaa
 */
public class VentanaAdministrador extends javax.swing.JFrame {

    String[] args;
    /** Creates new form VentanaAdministrador */
    public VentanaAdministrador() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButtonAdministrarUsuarios = new javax.swing.JButton();
        jButtonModificarDatos = new javax.swing.JButton();
        jButtonImprimirInformes = new javax.swing.JButton();
        jButtonInformacionExplotacion = new javax.swing.JButton();
        jButtonConsultarDatos = new javax.swing.JButton();
        jButtonAyuda = new javax.swing.JButton();
        jButtonCopia = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(cowmanager.CowManagerApp.class).getContext().getResourceMap(VentanaAdministrador.class);
        jButtonAdministrarUsuarios.setIcon(resourceMap.getIcon("jButtonAdministrarUsuarios.icon")); // NOI18N
        jButtonAdministrarUsuarios.setText(resourceMap.getString("jButtonAdministrarUsuarios.text")); // NOI18N
        jButtonAdministrarUsuarios.setName("jButtonAdministrarUsuarios"); // NOI18N
        jButtonAdministrarUsuarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAdministrarUsuariosActionPerformed(evt);
            }
        });

        jButtonModificarDatos.setIcon(resourceMap.getIcon("jButtonModificarDatos.icon")); // NOI18N
        jButtonModificarDatos.setText(resourceMap.getString("jButtonModificarDatos.text")); // NOI18N
        jButtonModificarDatos.setName("jButtonModificarDatos"); // NOI18N
        jButtonModificarDatos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonModificarDatosActionPerformed(evt);
            }
        });

        jButtonImprimirInformes.setIcon(resourceMap.getIcon("jButtonImprimirInformes.icon")); // NOI18N
        jButtonImprimirInformes.setText(resourceMap.getString("jButtonImprimirInformes.text")); // NOI18N
        jButtonImprimirInformes.setName("jButtonImprimirInformes"); // NOI18N
        jButtonImprimirInformes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonImprimirInformesActionPerformed(evt);
            }
        });

        jButtonInformacionExplotacion.setIcon(resourceMap.getIcon("jButtonInformacionExplotacion.icon")); // NOI18N
        jButtonInformacionExplotacion.setText(resourceMap.getString("jButtonInformacionExplotacion.text")); // NOI18N
        jButtonInformacionExplotacion.setName("jButtonInformacionExplotacion"); // NOI18N
        jButtonInformacionExplotacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonInformacionExplotacionActionPerformed(evt);
            }
        });

        jButtonConsultarDatos.setIcon(resourceMap.getIcon("jButtonConsultarDatos.icon")); // NOI18N
        jButtonConsultarDatos.setText(resourceMap.getString("jButtonConsultarDatos.text")); // NOI18N
        jButtonConsultarDatos.setName("jButtonConsultarDatos"); // NOI18N
        jButtonConsultarDatos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultarDatosActionPerformed(evt);
            }
        });

        jButtonAyuda.setIcon(resourceMap.getIcon("jButtonAyuda.icon")); // NOI18N
        jButtonAyuda.setText(resourceMap.getString("jButtonAyuda.text")); // NOI18N
        jButtonAyuda.setBorder(null);
        jButtonAyuda.setName("jButtonAyuda"); // NOI18N
        jButtonAyuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAyudaActionPerformed(evt);
            }
        });

        jButtonCopia.setIcon(resourceMap.getIcon("jButtonCopia.icon")); // NOI18N
        jButtonCopia.setText(resourceMap.getString("jButtonCopia.text")); // NOI18N
        jButtonCopia.setName("jButtonCopia"); // NOI18N
        jButtonCopia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCopiaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(105, 105, 105)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jButtonModificarDatos, javax.swing.GroupLayout.PREFERRED_SIZE, 259, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
                                .addComponent(jButtonConsultarDatos, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jButtonInformacionExplotacion, javax.swing.GroupLayout.PREFERRED_SIZE, 259, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 68, Short.MAX_VALUE)
                                .addComponent(jButtonCopia, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jButtonImprimirInformes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 583, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 102, Short.MAX_VALUE)
                        .addComponent(jButtonAyuda))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(237, 237, 237)
                        .addComponent(jButtonAdministrarUsuarios, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(jButtonAdministrarUsuarios)
                .addGap(39, 39, 39)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConsultarDatos)
                    .addComponent(jButtonModificarDatos))
                .addGap(43, 43, 43)
                .addComponent(jButtonImprimirInformes)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(51, 51, 51)
                        .addComponent(jButtonAyuda)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonInformacionExplotacion)
                            .addComponent(jButtonCopia))
                        .addGap(28, 28, 28))))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonAdministrarUsuariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAdministrarUsuariosActionPerformed
        AdministrarUsuarios.main(args);
    }//GEN-LAST:event_jButtonAdministrarUsuariosActionPerformed

    private void jButtonInformacionExplotacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonInformacionExplotacionActionPerformed
        InformacionExplotacion.main(args);
    }//GEN-LAST:event_jButtonInformacionExplotacionActionPerformed

    private void jButtonModificarDatosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonModificarDatosActionPerformed
        ModificarDatos.main(args);
    }//GEN-LAST:event_jButtonModificarDatosActionPerformed

    private void jButtonCopiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCopiaActionPerformed
        VentanaCopia.main(args);
    }//GEN-LAST:event_jButtonCopiaActionPerformed

    private void jButtonConsultarDatosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConsultarDatosActionPerformed
        ConsultarDatos.main(args);
    }//GEN-LAST:event_jButtonConsultarDatosActionPerformed

    private void jButtonImprimirInformesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonImprimirInformesActionPerformed
        ImprimirInformes.main(args);
    }//GEN-LAST:event_jButtonImprimirInformesActionPerformed

    private void jButtonAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAyudaActionPerformed
        VentanaAyuda ayuda = new VentanaAyuda("Administrador");
        ayuda.setVisible(true);
    }//GEN-LAST:event_jButtonAyudaActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                VentanaAdministrador ven = new VentanaAdministrador();
                ven.getContentPane().setBackground(Color.blue);
                ven.setTitle("ADMINISTRADOR");
                ven.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAdministrarUsuarios;
    private javax.swing.JButton jButtonAyuda;
    private javax.swing.JButton jButtonConsultarDatos;
    private javax.swing.JButton jButtonCopia;
    private javax.swing.JButton jButtonImprimirInformes;
    private javax.swing.JButton jButtonInformacionExplotacion;
    private javax.swing.JButton jButtonModificarDatos;
    // End of variables declaration//GEN-END:variables

}
